package cn.shadow.entity;

public class PlayerId {
    public final long id;

    public PlayerId(long id) {
        this.id = id;
    }

    @Override
    public int hashCode() {
        return (int) (id);
    }

    @Override
    public boolean equals(Object obj) {
        if (!(obj instanceof PlayerId)) {
            return false;
        }

        PlayerId t = (PlayerId) obj;
        return t.id == id;
    }
}
